import axios from "axios";
export function request(config){
  //创建axios实例
  const instance = axios.create({
    baseURL:'http://106.53.73.30:8888/api/private/v1'
  })
  //拦截器
  instance.interceptors.request.use(config=>{
    config.headers.Authorization = window.sessionStorage.getItem('token')
    return config
  })
  return instance(config)
}